package com.example.restful01.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.restful01.model.BorrowRecords;

import java.util.Collection;
import java.util.List;

public interface BorrowRecordsService extends IService<BorrowRecords> {
    boolean deleteBorrow(BorrowRecords borrowRecords);

    int addBorrow(BorrowRecords borrowRecords);


    List<BorrowRecords> initBorrows(Integer readerId);

    Boolean returnBook(Integer recordId);

    boolean continueBorrow(Integer recordId);

    List<BorrowRecords> searchBorrow(String info);
}
